<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function checking() {
		var password = document.goToUpdate.name.value;
		if (password == "") {
			alert("비밀번호를 입력해주세요");
			return false;
		}
	}
</script>
</head>
<body>
	<c:choose>
		<c:when test="${sessionScope.userInfo==null}">
			<script type="text/javascript">
			//이 아랫줄 코드가 없으면 이 when 문이 먹질 않는데.. 왜그런지 모르겠음ㅜ
				alert(${sessionScope.userInfo});
				alert("로그인 후에 이용가능한 서비스입니다");
				location.href = "${initParam.root}member.do?command=home";
			</script>
		</c:when>
		<c:otherwise>
			회원정보 수정을 위해서 비밀번호를 한번 더 입력해 주세요<br>
			<form action="${initParam.root }member.do" id="goToUpdate"
				method="post">
				비밀번호: <input type="password" name="password"> <input
					type="hidden" name="command" value="updateBefore"> <input
					type="submit" value="확인">
			</form>
		</c:otherwise>
	</c:choose>

</body>
</html>